/**
 * Arduino两轮小车
 * 
 * 本程序可不受限制的用于学习和教学，商业用途请联系作者。
 * 本程序不对用户因使用程序而造成任何形式的损失负责。
 * 
 * site: http://www.xpstem.com/maker/arduino-vehicle
 * author: billy zhang
 */
 
#ifndef ARDUINO_LEDCONTROLLER_H_
#define ARDUINO_LEDCONTROLLER_H_

#include <Arduino.h>
#include "TwiBus.h"

class LedController
{
  public:
    LedController(const TwiBus& bus, uint8_t address)
      : bus_(bus), address_(address)
    {
    }
    ~LedController();
    
    void control(bool head_led, bool stop_led, bool turnleft_led, bool turnright_led);

  private:
    const TwiBus& bus_;
    const uint8_t address_;
    
};

#endif
